<article itemscope itemtype="http://schema.org/Article">
<h1 class="lightened" itemprop="name" <?if(X3::user()->isAdmin()):?>x3editable="Page(<?=$model->id?>).title"<?endif;?>><?=$model->title?></h1>
<div class="breadcrumbs"><?=$model->generateBread();?></div>
<div style="position:relative;" <?if(X3::user()->isAdmin()):?> title="" id="x3-text" contenteditable="true" x3editable="Page(<?=$model->id?>).text"<?endif;?> itemprop="articleBody" class="content">
    <?=$model->text?>
</div>
<time class="visuallyhidden" itemprop="dateCreated" datetime="<?=date('Y-m-d',$model->created_at)?>"><?=date('d.m.Y',$model->created_at)?></time>
<?php
//music
if($model->music != ''){
    $music = explode(',',$model->music);
    foreach($music as $m){
        $x = explode('::',$m);
        $title = addslashes(strtok($x[0],'.'));
        echo "<audio src=\"{$x[1]}\" title=\"$title\" >$title</audio>";
    }
}
?>
</article>
<?=$model->drawChildren()?>